package com.xiangmo.travel.Service;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiangmo.travel.Dto.AttractionsDto;
import com.xiangmo.travel.Dto.PageInfoDto;
import com.xiangmo.travel.Dvo.AttractionsDvo;
import com.xiangmo.travel.Entity.Attractions;



public interface AttractionsService {
    //插入文章信息
    Long publishAttractions(AttractionsDto attractionsDto);
    //通过景点id获取文章详情
    Attractions getAttractionsById(Long id);
    //文章分页查询
    PageInfoDto<AttractionsDvo> attractionsPage(int pageNum, int pageSize);
    //根据类别查询文章并分页
    PageInfoDto<AttractionsDvo> attractionsPageByType(int pageNum, int pageSize, String type);
    //搜索景点文章
    PageInfoDto<AttractionsDvo> searchAttractions(int pageNum, int pageSize, String content);
    //搜索景点文章 分类前提
    PageInfoDto<AttractionsDvo> searchAttractionsByType(int pageNum, int pageSize, String content, String type);
    //通过用户id查看发布的景点
    Page<Attractions> getAttractionsByUserId(Long userId, int pageNum, int pageSize);
}
